﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Diagnostics;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="DepartmentQuerEntity", Namespace="http://schemas.datacontract.org/2004/07/WMS6.QueryEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class DepartmentQuerEntity : BaseQuery
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private string CreatedDateField;
        [OptionalField]
        private string DepartmentIDField;
        [OptionalField]
        private string DescrField;
        [OptionalField]
        private string DPAddressField;
        [OptionalField]
        private string DPContactField;
        [OptionalField]
        private string DPContactPhoneField;
        [OptionalField]
        private string DPFaxField;
        [OptionalField]
        private string DPPhoneField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string ParentDpIDField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private string UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    base.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public string CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedDateField, value))
                {
                    this.CreatedDateField = value;
                    base.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string DepartmentID
        {
            get
            {
                return this.DepartmentIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DepartmentIDField, value))
                {
                    this.DepartmentIDField = value;
                    base.RaisePropertyChanged("DepartmentID");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    base.RaisePropertyChanged("Descr");
                }
            }
        }

        [DataMember]
        public string DPAddress
        {
            get
            {
                return this.DPAddressField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DPAddressField, value))
                {
                    this.DPAddressField = value;
                    base.RaisePropertyChanged("DPAddress");
                }
            }
        }

        [DataMember]
        public string DPContact
        {
            get
            {
                return this.DPContactField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DPContactField, value))
                {
                    this.DPContactField = value;
                    base.RaisePropertyChanged("DPContact");
                }
            }
        }

        [DataMember]
        public string DPContactPhone
        {
            get
            {
                return this.DPContactPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DPContactPhoneField, value))
                {
                    this.DPContactPhoneField = value;
                    base.RaisePropertyChanged("DPContactPhone");
                }
            }
        }

        [DataMember]
        public string DPFax
        {
            get
            {
                return this.DPFaxField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DPFaxField, value))
                {
                    this.DPFaxField = value;
                    base.RaisePropertyChanged("DPFax");
                }
            }
        }

        [DataMember]
        public string DPPhone
        {
            get
            {
                return this.DPPhoneField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DPPhoneField, value))
                {
                    this.DPPhoneField = value;
                    base.RaisePropertyChanged("DPPhone");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    base.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string ParentDpID
        {
            get
            {
                return this.ParentDpIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ParentDpIDField, value))
                {
                    this.ParentDpIDField = value;
                    base.RaisePropertyChanged("ParentDpID");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    base.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    base.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    base.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    base.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public string UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedDateField, value))
                {
                    this.UpdatedDateField = value;
                    base.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    base.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

